# 登录接口进行断言
def assert_common(res, exp_s_code, exp_succ, exp_code, exp_msg):
    assert res.status_code == exp_s_code
    assert res.json().get('success') == exp_succ
    assert res.json().get('code') == exp_code
    assert res.json().get('message') == exp_msg